package all_router

import (
	"github.com/gin-gonic/gin"
	"zhuandan/controller/admin"
	"zhuandan/controller/crm"
	"zhuandan/controller/user"
)

//总路由
func InitRouter(router *gin.Engine) {
	user_group := router.Group("/user")
	admin_group := router.Group("/admin")
	crm_group := router.Group("/crm")
	user.Router(user_group)
	admin.Router(admin_group)
	crm.Router(crm_group)
}
